{% extends "base_generic.html" %}
{% load static %}
{% block extra_css %}
<link rel="stylesheet" href="{% static 'css/user_management.css' %}">
{% endblock %}

{% block content %}
<div class="container mt-4">
    <h1 class="text-center mb-4"><i class="fas fa-language"></i> 语言列表</h1>
    
    <div class="card">
        <div class="card-header">
            <h2 class="mb-0">语言选项</h2>
        </div>
        
        <div class="card-body">
            {% if language_list %}
            <table class="table table-striped">
                <thead>
                    <tr>
                        <th scope="col">语言名称</th>
                    </tr>
                </thead>
                <tbody>
                    {% for language in language_list %}
                    <tr>
                        <td><i class="fas fa-globe"></i> <a href="{{ language.get_absolute_url }}">{{ language }}</a></td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
            {% else %}
            <p>暂无语言选项。</p>
            {% endif %}
        </div>
    </div>
</div>
{% endblock %}

